  <!-- Site Showcase -->
  <div class="site-showcase">
    <!-- Start Page Header -->
    <div class="parallax page-header" style="background-image:url(http://placehold.it/1200x260&amp;text=IMAGE+PLACEHOLDER);">
          <div class="container">
              <div class="row">
                  <div class="col-md-12">
                      <h1><?php echo __('Detail Profile'); ?></h1>
                  </div>
             </div>
         </div>
    </div>
    <!-- End Page Header -->
  </div>
  <!-- Start Content -->
  <div class="main" role="main">
      <div id="content" class="content full">
          <div class="container">
              <div class="row">
                  <div class="col-md-9">
                      <div class="single-agent"><?php //pr($user); ?>
                          <div class="counts pull-right"><strong>18</strong><span><?php echo __('Properties'); ?></span></div>
                          <h2 class="page-title"><?php echo ($user['User']['first_name']); ?>   <?php echo ($user['User']['last_name']); ?></h2>
                          <div class="row">
                              <div class="col-md-6 col-sm-6">
                              <?php 
							if($user['User']['image'])
							  $image	=	'/files/user/'.$user['User']['image'];
							  else
							  $image	=	'http://placehold.it/600x360&text=IMAGE+PLACEHOLDER';

							  ?>
                                      <img src="<?php echo $this->Html->url($image); ?>" alt="<?php echo ($user['User']['first_name']); ?>   <?php echo ($user['User']['last_name']); ?>" class="img-thumbnail">
                                      
                              </div>
                              <div class="col-md-6 col-sm-6">
                               <?php echo $this->Text->autoParagraph(h($user['User']['description'])); ?>
                                     
                              </div>
                          </div>
                          <div class="row">
                                  <div class="col-md-6 col-sm-6">
                                  <div class="agent-contact-details">
                                          <h4><?php echo __('Contact Details'); ?></h4>
                                          <ul class="list-group">
                                          <li class="list-group-item"> <span class="badge"><?php echo h($user['User']['mobile_phone']); ?></span> Mobile Phone </li>
                                          <li class="list-group-item"> <span class="badge"><?php echo h($user['User']['work_phone']); ?></span> Work Phone </li>
                                          <li class="list-group-item"> <span class="badge"><?php echo h($user['User']['email']); ?></span> Email </li>
                                          <li class="list-group-item">
                                              <div class="social-icons">
                                                  <a href="<?php echo $this->Html->fix_url($user['User']['facebook']); ?>"><i class="fa fa-facebook"></i></a>
                                                  <a href="<?php echo $this->Html->fix_url($user['User']['twitter']); ?>"><i class="fa fa-twitter"></i></a>
                                                  <a href="<?php echo $this->Html->fix_url($user['User']['google_plus']); ?>"><i class="fa fa-google-plus"></i></a>
                                                  <a href="<?php echo $this->Html->fix_url($user['User']['linkedin']); ?>"><i class="fa fa-linkedin"></i></a>
                                             </div>
                                          </li>
                                          </ul>
                                      </div>
                               </div>
                               <div class="col-md-6 col-sm-6">
                                  <div class="agent-contact-form">
                                          <h4><?php echo __('Contact Form'); ?></h4>
                                      <form>
                                              <input type="email" name="Email Address" class="form-control" placeholder="Email Address">
                                          <textarea name="comments" class="form-control" placeholder="Your message" cols="10" rows="5"></textarea>
                                          <button type="submit" class="btn btn-primary pull-right"><?php echo __('Submit'); ?></button>
                                          </form>
                                  </div>
                               </div>
                          </div>
                    </div>
                    <div class="spacer-20"></div>
                    <!-- Start Related Properties -->
                    <h3>Latest properties listed by <a href="#"><?php echo h($user['User']['first_name']); ?>  <?php echo h($user['User']['last_name']); ?></a></h3>
                    <hr>
                    <div class="property-grid">
                      <ul class="grid-holder col-3">
                      <?php foreach($agent_properties as $property): ?>
                        <li class="grid-item type-buy">
                          <div class="property-block"> <a href="<?php echo $this->Html->url(array('controller'=>'Properties','action'=>'view',$property['Property']['id'],Inflector::slug(strtolower($property['Property']['title']),'-'))); ?>" class="property-featured-image"> <img src="<?php echo $this->Html->url('/files/property/thumb/'.$property['Property']['image1']); ?>" alt=""> <span class="images-count"><i class="fa fa-picture-o"></i> 2</span> <span class="badges"><?php if(isset($property['Property']['contract_type'])) echo ucwords($property['Property']['contract_type']); ?></span> </a>
                            <div class="property-info">
                              <h4>
                              <?php echo $this->Html->link(trim(substr($property['Property']['title'],0,25)),array('controller'=>'Properties','action'=>'view',$property['Property']['id'],Inflector::slug(strtolower($property['Property']['title']),'-'))); ?>
                              </h4>
                              <span class="location">NYC</span>
                              <div class="price"><strong><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?></strong><span><?php echo number_format($property['Property']['price']); ?></span></div>
                            </div>
                            <div class="property-amenities clearfix"> <span class="area"><strong><?php echo $property['Property']['area']; ?></strong>   <?php echo __('Area'); ?></span> <span class="baths"><strong><?php echo $property['Property']['baths']; ?> </strong>  <?php echo __('Baths'); ?></span> <span class="beds"><strong><?php echo $property['Property']['beds']; ?></strong>   <?php echo __('Beds'); ?></span> <span class="parking"><strong><?php echo $property['Property']['parking']; ?></strong>  <?php echo __('Parking'); ?></span> </div>
                          </div>
                        </li>
                      <?php endforeach; ?>
                      </ul>
                    </div>
                  </div>
                  <!-- Start Sidebar -->
          <?php echo $this->element('side-bar-more-agents', array(), array('cache' => array('config' => 'cache'))); ?>
              </div>
          </div>
      </div>
  </div>
